<?php
	function login($userInfo, $isMessage){
		$token = md5($userInfo['user'] . $userInfo['password'] . date('Y-m-d', time()));
		$data = array(
			"data" => array(
				"token" => $token
			),
			"isMessage" => $isMessage,
			"code" => 0
			
		);
		return $data;
	}
	function commonparameters($isMessage, $code) {
		$data = array(
			"isMessage" => $isMessage,
			"code" => $code
		);
		return $data;
	}
 
?>